Cucumber Features

Expand All

Collapse All

Feature: Adding and removing documents from a worklist

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6

Feature: Audience filtering

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
features/audience-filtering.feature:7

Scenario: I can see content filtered for audience kbstaff when I am audience kbstaff

  1. Given a document with filename "kbstaff.ditaval" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <val>
    <!-- kbstaff sees everything, so include all audience-filtered content -->
    <prop action="include" att="audience" ></prop>
    </val>
  2. And a document with filename "bbah.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task audience="default" id="kbdoc">
    <title id="default">How do I define the keys for all cross references in a topic in the DITA KB?</title>
    <taskbody>
    <steps>
    <step>
    <note audience="kbstaff">You need to run the xslt transformation</note>
    <cmd>With the topic or associated map open in the editor window, in the toolbar, select
    <uicontrol>Configure Transformation Scenario</uicontrol></cmd></step>
    </steps>
    </taskbody>
    </task>
  3. And a document with filename "bbah.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bbah" href="bbah.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bbah"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN-->
    </map>
  4. When I preview the document with audience filter "kbstaff"
    features/step_definitions/all_steps.rb:201
  5. Then I should see "You need to run the xslt transformation" in the preview window
    features/step_definitions/all_steps.rb:338
Screenshot
 
features/audience-filtering.feature:66

Scenario: I can not see content filtered for audience kbstaff when I am audience default

  1. Given a document with filename "default.ditaval" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <val>
    <prop action="exclude" att="audience" ></prop>
    <prop action="include" att="audience" val="default" ></prop>
    </val>
  2. And a document with filename "kbstaff.ditaval" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <val>
    <!-- kbstaff sees everything, so include all audience-filtered content -->
    <prop action="include" att="audience" ></prop>
    </val>
  3. And a document with filename "bbah.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task id="kbdoc">
    <title id="default">How do I define the keys for all cross references in a topic in the DITA KB?</title>
    <taskbody>
    <steps>
    <step>
    <note audience="kbstaff">You need to run the xslt transformation</note>
    <cmd>With the topic or associated map open in the editor window, in the toolbar, select
    <uicontrol>Configure Transformation Scenario</uicontrol></cmd></step>
    </steps>
    </taskbody>
    </task>
  4. And a document with filename "bbah.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bbah" href="bbah.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bbah"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN-->
    </map>
  5. When I preview the document with audience filter "default"
    features/step_definitions/all_steps.rb:201
  6. Then I should see "With the topic or associated map" in the preview window
    features/step_definitions/all_steps.rb:338
  7. But I should not see "You need to run the xslt transformation" in the preview window
    features/step_definitions/all_steps.rb:345
Screenshot
 

Feature: Creating content


In order to write about new things
As a KMS Maintainer
I want to create new content through the CRUD web interface

features/creating-content.feature:15

Scenario: I can add a new doc

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
  2. When I follow "New content"
    features/step_definitions/web_steps.rb:33
  3. And I fill in "document.documentHeader.documentDescription" with "an automated test doc" in the frame
    features/step_definitions/all_steps.rb:251
  4. And I fill in "document.kmsDocument.kmsFileName.fileName" with "xxxx" in the frame
    features/step_definitions/all_steps.rb:251
  5. And I fill in "document.kmsDocument.content" in the frame with
    features/step_definitions/all_steps.rb:147
    <task id="kbdoc">
    <title id="default">In Microsoft Excel, how can I apply several formats to a cell in one step?</title>
    </task>
  6. And I press "save" in the frame
    features/step_definitions/all_steps.rb:235
  7. Then I should see "Document was successfully saved." in the frame
    features/step_definitions/all_steps.rb:273
    expected there to be content "Document was successfully saved." in "KMS Content Request \n  Doc Nbr: 3095   Status: INITIATED\n  Initiator: editor1   Created: 04:49 PM 01/26/2012\n1 error(s) found on page.\n\n* required field\nContent request\nErrors found in this Section:\nThis document has already been modified by another user. Press the \"reload\" button to replace your copy of the document with the newer version.\nDocument Overview\n  * Description:   Explanation:\nQuick links\nNew content\nEdit content\nSearch\nContent revision request lookup\nBranch maintenance\nFile type code maintenance\nNew worklist\nContent location\n  Branch name\ntrunk\n  Content id 1\n  * File xxxx.dita\n  * Folder /\n  Approved  by\n  Publish\n  * XML content\n<task id=\"kbdoc\"> <title id=\"default\">In Microsoft Excel, how can I apply several formats to a cell in one step?</title> </task>\nSample documents:   dita topic   dita map   audience filter (ditaval)\n\nSelect an audience filter\ndefault\nkbstaff\n\n\nYou must save or route a document before previewing new changes.\nScan Hot Items\n\n\nContent metadata\nContent validation\nNotes and Attachments (0)\n\n\n\nAd Hoc Recipients\n\nRoute Log\n " (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/all_steps.rb:276
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/all_steps.rb:275
    ./features/step_definitions/all_steps.rb:274:in `/^(?:|I )should see "([^"]*)"(?: within "([^"]*)")? in the frame$/'
    features/creating-content.feature:28:in `Then I should see "Document was successfully saved." in the frame'
    274  within_frame frame_id() do
    275    with_scope(selector) do
    276      page.should have_content(text)
    277    end
    278  end
Screenshot
 

Feature: CRUD web interface


In order to work with content in the KMS
As a KMS Maintainer
I want to interact with the KMS through a web interface

Feature: Deleting content


In order to keep the repository uncluttered so users can find what they need
As a KMS Maintainer
I want to be able to delete existing documents

Feature: Editor creates a new doc

Possible scenarios:

Editor attends service meeting and learns of a service change that requires additional documentation
Editor receives a comment from an end user about something undocumented
Editor reads post to SC listserv concerning something new and undocumented.



These scenarios involve so much outside the KMS system itself that they are hard to differentiate as separate tests. So I'm going to start small with what I know can be done within the KMS.

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
features/editor-drafts-new-doc.feature:45

Scenario: After an Editor submits a doc, it can be approved or disapproved by an Editor

  1. Given a document with filename "xaac.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE topic PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:topic"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/topic/dtd/kbtopic.dtd">
    <topic id="kbdoc">
      <title id="default">test default title</title>
      <prolog>
        <author type="creator">jorahood</author>
        <critdates>
          <created date="2008-09-12 12:22" user="mligget"/>
          <revised modified="2009-05-05 01:23" user="madalton"/>
          <approved modified="2011-05-25 23:21" user="bolte" note="just change the date every year"/>
          <expires modified="2011-06-04 10:34" expiry="2011-11-11 22:12" user="jthatche" note="because of that new thing"/>
        </critdates>
        <visibility view="visible"/>
        <docid id="xaac"/>
        <owner>ONCOURSE-SME</owner>
      </prolog>
      <body>
        <p>First, try <xref href="http://google.com">Google</xref>.</p>
      </body>
    </topic>
  2. When I submit the document
    features/step_definitions/all_steps.rb:313
  3. Then I should be able to "approve" the document
    features/step_definitions/all_steps.rb:330
    no button with value or id or text 'reload' found (Capybara::ElementNotFound)
    (eval):2:in `send'
    (eval):2:in `click_button'
    ./features/step_definitions/all_steps.rb:332
    ./features/step_definitions/all_steps.rb:331:in `/^I should be able to "([^"]*)" the document$/'
    features/editor-drafts-new-doc.feature:72:in `Then I should be able to "approve" the document'
    0# Couldn't get snippet for (eval)
  4. And I should be able to "disapprove" the document
    features/step_definitions/all_steps.rb:330
Screenshot
 
features/editor-drafts-new-doc.feature:75

Scenario: An Editor requesting owner approval for a doc causes it to appear in the owner's action list

  1. Given a document with filename "xaab.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE topic PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:topic"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/topic/dtd/kbtopic.dtd">
    <topic id="kbdoc">
      <title id="default">test default title</title>
      <prolog>
        <author type="creator">jorahood</author>
        <critdates>
          <created date="2008-09-12 12:22" user="mligget"/>
          <revised modified="2009-05-05 01:23" user="madalton"/>
          <approved modified="2011-05-25 23:21" user="bolte" note="just change the date every year"/>
          <expires modified="2011-06-04 10:34" expiry="2011-11-11 22:12" user="jthatche" note="because of that new thing"/>
        </critdates>
        <visibility view="visible"/>
        <docid id="xaab"/>
        <owner>ONCOURSE-SME</owner>
      </prolog>
      <body>
        <p>First, try <xref href="http://google.com">Google</xref>.</p>
      </body>
    </topic>
  2. And user "sme1" is a member of the "ONCOURSE-SME" owner group
    features/step_definitions/all_steps.rb:159
  3. When I route the document for SME approval
    features/step_definitions/all_steps.rb:319
  4. And I impersonate user "sme1"
    features/step_definitions/all_steps.rb:325
  5. Then I should see document "xaab.dita" in my action list
    features/step_definitions/all_steps.rb:306
    expected there to be content "xaab.dita" in "Action List\n\n\n\nAction List | Outbox\n\n\n29 items retrieved, displaying 1 to 10.[First/Prev] 1, 2, 3 [Next/Last]\nId Type Title Route Status Action Requested Initiator Delegator Date Created Group Request Log\n3035 KMS Work List KMS Work List - another test list  SAVED COMPLETE Foobar, Editor1   03:27 PM 01/26/2012   \n3036 KMS Work List KMS Work List - another test list  SAVED COMPLETE Foobar, Editor1   03:27 PM 01/26/2012   \n3037 KMS Work List KMS Work List - another test list  SAVED COMPLETE Foobar, Editor1   03:28 PM 01/26/2012   \n3038 KMS Content Request KMS Content Request - kbstaff.ditaval  SAVED COMPLETE Foobar, Editor1   03:28 PM 01/26/2012   \n3039 KMS Content Request KMS Content Request - bbah.dita  SAVED COMPLETE Foobar, Editor1   03:28 PM 01/26/2012   \n3040 KMS Content Request KMS Content Request - bbah.ditamap  SAVED COMPLETE Foobar, Editor1   03:28 PM 01/26/2012   \n3041 KMS Content Request KMS Content Request - default.ditaval  SAVED COMPLETE Foobar, Editor1   03:29 PM 01/26/2012   \n3046 KMS Content Request KMS Content Request - an automated test doc  SAVED COMPLETE Foobar, Editor1   03:30 PM 01/26/2012   \n3048 KMS Content Request KMS Content Request - xaaa.dita  ENROUTE APPROVE Foobar, Editor1   03:31 PM 01/26/2012  KMS Editors\n3049 KMS Content Request KMS Content Request - xaac.dita  ENROUTE APPROVE Foobar, Editor1   03:31 PM 01/26/2012  KMS Editors" (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/all_steps.rb:309
    ./features/step_definitions/all_steps.rb:308:in `/^I should see document "([^"]*)" in my action list$/'
    features/editor-drafts-new-doc.feature:104:in `Then I should see document "xaab.dita" in my action list'
    307  click_link('Action List')
    308  within_frame frame_id() do
    309    page.should have_content(filename)
    310  end
    311end
Screenshot
 

Feature: Reading content


In order to know what existing documents contain
As a KMS Maintainer
I want to be able to read existing documents through the CRUD web interface

features/reading-content.feature:8

Scenario: I can view a doc's xml

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
  2. And a document with filename "xxxx.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <topic id="kbdoc">
    <title id="default">How can I contact the Support Center at each IU campus for help?
    </title>
    </topic>
  3. When I view the document with filename "xxxx.dita"
    features/reading-content.feature:17
    Undefined step: "I view the document with filename "xxxx.dita"" (Cucumber::Undefined)
    features/reading-content.feature:17:in `When I view the document with filename "xxxx.dita"'
    15</topic>
    16"""
    17When I view the document with filename "xxxx.dita"
    18Then I should see "How can I contact the Support Center at each IU campus for help?" in the document text
    19
    When /^I view the document with filename "([^"]*)"$/ do |arg1|
      pending # express the regexp above with the code you wish you had
    end
  4. Then I should see "How can I contact the Support Center at each IU campus for help?" in the document text
    features/reading-content.feature:18
    Undefined step: "I should see "How can I contact the Support Center at each IU campus for help?" in the document text" (Cucumber::Undefined)
    features/reading-content.feature:18:in `Then I should see "How can I contact the Support Center at each IU campus for help?" in the document text'
    16"""
    17When I view the document with filename "xxxx.dita"
    18Then I should see "How can I contact the Support Center at each IU campus for help?" in the document text
    19
    20           
    Then /^I should see "([^"]*)" in the document text$/ do |arg1|
      pending # express the regexp above with the code you wish you had
    end
Screenshot
 

Feature: Rendering


For Scenario 1, rendering a DITA-OT sample document, I've gotten it passing with actual new documents, using new filenames for every test, and just now it is also passing for recycled documents. To get the "Given a document with filename "xxxx.dita" exists with content" step group to actually complete creating the document I tried adding a step to the end to wait for the page to finish reloading, because otherwise when there was another identical creation step group following it for the .ditamap file the first creation of the .dita file would not complete. I'm now not sure what the problem is but these scenarios are "flickering"; passing and failing without any changes made to them, based on factors that I do not understand.


As far as the poller needing time to process the files, It's impossible to know at the moment how long it takes because there is no feedback about where the poller is in the process. I'm still experimenting with different delays. It would be nice to get a widget that told me when the poller stopped and started. The longest rendering doc on this page seems to require 30 to 40 seconds.

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
features/rendering.feature:14

Scenario: I can render a DITA-OT sample document

  1. Given a document with filename "default.ditaval" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <val>
    <prop action="exclude" att="audience" ></prop>
    <prop action="include" att="audience" val="default" ></prop>
    </val>
  2. Given a document with filename "xxaq.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd">
    <topic id="kbdoc" xml:lang="en-us">
    <title>Shopping for groceries</title>
    <shortdesc>Tips on buying groceries.</shortdesc>
    <prolog>
    <author type="creator">Tom McIntyre</author>
    <copyright>
    <copyryear year="2007" ></copyryear>
    <copyrholder>Acme Company</copyrholder>
    </copyright>
    <critdates>
    <created date="2006-August-07" ></created>
    <revised modified="2007-March-18" ></revised>
    </critdates>
    <metadata>
    <keywords>
    <keyword>grocery shopping</keyword>
    </keywords>
    </metadata>
    </prolog>
    <body>
    <p>A sample document to test ditac rendering.</p>
    </body>
    </topic>
  3. And a document with filename "xxaq.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map>
    <topicref keys="xxaq" href="xxaq.dita#kbdoc"></topicref>
    <reltable>
    <relheader>
    <relcolspec type="topic" linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec type="task" linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    <relcolspec type="glossentry" linking="targetonly">
    <title>Hotitems</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="xxaq"></topicref>
    </relcell>
    <relcell></relcell>
    <relcell></relcell>
    </relrow>
    </reltable>
    </map>
  4. When I preview the document with audience filter "default"
    features/step_definitions/all_steps.rb:201
  5. Then I should see "Tips on buying groceries." in the preview window
    features/step_definitions/all_steps.rb:338
Screenshot
 
features/rendering.feature:83

Scenario: I can render a specialized doc that doesn't reference any other documents

  1. Given a document with filename "bbah.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task audience="default" id="kbdoc">
    <title id="default">How do I define the keys for all cross references in a topic in the DITA KB?</title>
    <shortdesc/>
    <prolog>
    <author>jorahood</author>
    <critdates>
    <created date=""/>
    <revised modified=""/>
    </critdates>
    <metadata>
    <keywords>
    <keyword></keyword>
    </keywords>
    </metadata>
    <docid id="bbah"/>
    </prolog>
    <taskbody>
    <steps>
    <step>
    <note>You need to run the xslt transformation that will add key definitions for all the
    refs in a map, as well as for all the kbhs, kbas, and boilers in the associated
    topic.</note>
    <cmd>With the topic or associated map open in the editor window, in the toolbar, select
    <uicontrol>Configure Transformation Scenario</uicontrol></cmd></step>
    <step>
    <cmd>In the <wintitle>Scenario type</wintitle> dropdown, select <option>Xml Transformation
    with XSLT</option>.</cmd>
    </step>
    <step>
    <cmd>Under <wintitle>User Defined Scenarios</wintitle>, select
    <option>contextualize</option> and click <uicontrol>Transform now</uicontrol>.</cmd>
    <stepresult>The keys necessary to render the topic will appear at the bottom of the topic's ditamap.</stepresult>
    </step>
    </steps>
    </taskbody>
    </task>
  2. And a document with filename "bbah.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bbah" href="bbah.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bbah"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN-->
    </map>
  3. When I preview the document with audience filter "default"
    features/step_definitions/all_steps.rb:201
  4. Then I should see "You need to run the xslt transformation" in the preview window
    features/step_definitions/all_steps.rb:338
    expected there to be content "You need to run the xslt transformation" in "Skip to content\nSearch: Knowledge Base    IU\nInclude archived documents\n10\n15\n20\n50\n100\n200\n300\nSearch results per page\nTHIS IS ONLY A DEMO OF PREVIEW FUNCTIONALITY. LINKS DO NOT WORK.\nLogin\nLogin is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.\nUsername:\nPassword:\nClose\nHome Menus Glossary Help\nText size:\nHow do I define the keys for all cross references in a topic in the DITA KB?\nProcedure\nWith the topic or associated map open in the editor window, in the toolbar, select Configure Transformation Scenario\n\n\nLast modified on .\nComments/Questions/Corrections\nUse this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!\nIf you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.\nContact Information\nFull Name:\n\nE-mail address:\nNote: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.\nMy comment concerns this document\nYour comments:\nChat with a consultant\n (IU login required)\nAvailable 24 hours a day, 7 days a week\nUITS Services and Support About the Knowledge Base KB Comments\nCopyright 2005-2010, The Trustees of Indiana University Copyright Complaints" (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/all_steps.rb:341
    ./features/step_definitions/all_steps.rb:340:in `/^I should see "([^"]*)" in the preview window$/'
    features/rendering.feature:157:in `Then I should see "You need to run the xslt transformation" in the preview window'
    339  # from http://blog.kshitizgurung.info/2011/07/detecting-popup-window-and-implementing-test-on-in-capybara-selenium/
    340  within_window(page.driver.browser.window_handles.last) do
    341    page.should have_content(string)
    342  end
    343end
Screenshot
 
features/rendering.feature:159

Scenario: I can render a specialized doc, bawq, that references another document, bawf

  1. Given a document with filename "bawf.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="xsl/contextualize.xsl"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task id="kbdoc">
    <title>How do I use the Subversion DITA repository?</title>
    <shortdesc>Connect to the Subversion repository and check out DITA docs using Oxygen's Subversion client</shortdesc>
    <prolog>
    <author>jorahood</author>
    <critdates>
    <created date="2010-03-11"/>
    <revised modified="2011-10-19"/>
    </critdates>
    <docid id="bawf"/>
    </prolog>
    <taskbody>
    </taskbody>
    </task>
  2. And a document with filename "bawf.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bawf" href="bawf.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bawf"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN-->
    </map>
  3. And a document with filename "bawq.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task" "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task id="kbdoc">
    <title id="default">In Oxygen XML Editor, how do I add a new document to the DITA KB?</title>
    <shortdesc>Adding a new document to the DITA KB using Oxygen</shortdesc>
    <prolog>
    <author></author>
    <critdates>
    <created date=""/>
    <revised modified=""/>
    </critdates>
    <metadata>
    <keywords>
    <keyword></keyword>
    </keywords>
    </metadata>
    <docid id="bawq"/>
    </prolog>
    <taskbody>
    <prereq>You must have checked out the DITA Prototypes repository, and have the DITA KB Oxygen
    project open in Oxygen Editor. For instructions, see <kba keyref="bawf"/>
    </prereq>
    
    </taskbody>
    </task>
  4. And a document with filename "bawq.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bawq" href="bawq.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bawq"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN-->
    <topicgroup conref="bawf.ditamap#docidbox"/>
    </map>
  5. When I preview the document with audience filter "default"
    features/step_definitions/all_steps.rb:201
  6. Then I should see "How do I use the Subversion DITA repository?" in the preview window
    features/step_definitions/all_steps.rb:338
Screenshot
 

Feature: Sorting a worklist


In order to arrange documents in useful orders and switch between different orders
As a KMS maintainer
I want to be able to sort the documents in a worklist by any column in ascending and descending order, and by multiple columns

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
features/sorting-a-worklist.feature:11

Scenario: Sorting on one column ascending and descending

  1. Given the following documents exist with metadata:
    features/step_definitions/all_steps.rb:85
    filename
    author
    xxxb
    bob
    xxxa
    andy
    xxxc
    chuck
  2. And a new worklist
    features/step_definitions/all_steps.rb:103
  3. And the worklist contains the following documents:
    features/step_definitions/all_steps.rb:114
    filename
    xxxa
    xxxb
    xxxc
  4. And the worklist displays the author column
    features/step_definitions/all_steps.rb:124
  5. When I sort the worklist by author
    features/step_definitions/all_steps.rb:215
  6. Then the documents should appear in this order:
    features/step_definitions/all_steps.rb:356
    filename
    author
    xxxa
    andy
    xxxb
    bob
    xxxc
    chuck
  7. And I sort the worklist by author
    features/step_definitions/all_steps.rb:215
  8. Then the documents should appear in this order:
    features/step_definitions/all_steps.rb:356
    filename
    author
    xxxc
    chuck
    xxxb
    bob
    xxxa
    andy
Screenshot
 
features/sorting-a-worklist.feature:54

Scenario: Setting a default sort order for one column

  1. And the following documents exist with metadata:
    features/step_definitions/all_steps.rb:85
    filename
    author
    xxxx
    bob
  2. And a new worklist
    features/step_definitions/all_steps.rb:103
  3. And the worklist contains the following documents:
    features/step_definitions/all_steps.rb:114
    filename
    xxxx
  4. And the worklist displays the author column
    features/step_definitions/all_steps.rb:124
  5. And I sort the worklist by author
    features/step_definitions/all_steps.rb:215
  6. And I set this sort order as default
    features/step_definitions/all_steps.rb:222
  7. When I sort the worklist by content id
    features/step_definitions/all_steps.rb:209
  8. And I reload the worklist
    features/step_definitions/all_steps.rb:229
  9. Then the worklist should be sorted by author
    features/step_definitions/all_steps.rb:362
    expected there to be content "Author" in "   " (RSpec::Expectations::ExpectationNotMetError)
    ./features/step_definitions/all_steps.rb:367
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/web_steps.rb:14:in `with_scope'
    ./features/step_definitions/all_steps.rb:366
    ./features/step_definitions/all_steps.rb:364:in `/^the worklist should be sorted by author$/'
    features/sorting-a-worklist.feature:76:in `Then the worklist should be sorted by author'
    365    find('th.headerSortDown')
    366    with_scope('th.headerSortDown') do
    367      page.should have_content('Author')
    368    end
    369  end
Screenshot
 

Feature: Transclusion


In order to not write the same content twice
As a KB Editor
I want to transclude content from one source to multiple targets

Background

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
features/transclusion.feature:11

Scenario: boiler usage

  1. Given a document with filename "default.ditaval" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <val>
    <prop action="exclude" att="audience" ></prop>
    <prop action="include" att="audience" val="default" ></prop>
    </val>
  2. And a document with filename "boilers-task.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task id="box">
    <title id="default">A container task for boilers</title>
    <taskbody>
    <prereq id="must-create-topic-and-map">Test sentence. You must have created a new topic and its ditamap in the DITA KB.</prereq>
    </taskbody>
    </task>
  3. And a document with filename "boilers-task.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
      PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="boilermap">
      <topicgroup id="docidbox"><topicref keys="boilers-task" href="boilers-task.dita" id="docid"/></topicgroup>
    
    <!--EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
            MANUAL CHANGES WILL BE OVERWRITTEN-->
    <topicgroup id="must-create-topic-and-map">
    </topicgroup>
    </map>
  4. And a document with filename "bawt.ditamap" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE map
    PUBLIC "-//OASIS//DTD DITA Map//EN" "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd">
    <map id="kbdocmap">
    <topicgroup id="docidbox"><topicref audience="default" keys="bawt" href="bawt.dita" id="docid"/></topicgroup>
    <reltable>
    <relheader>
    <relcolspec linking="sourceonly">
    <title>Source</title>
    </relcolspec>
    <relcolspec linking="targetonly">
    <title>Refs</title>
    </relcolspec>
    </relheader>
    <relrow>
    <relcell>
    <topicref keyref="bawt"/>
    </relcell>
    <relcell>
    </relcell>
    </relrow>
    </reltable>
    <!-- EVERYTHING BELOW THIS LINE IS GENERATED AUTOMATICALLY BY CONTEXTUALIZE.XSL.
    MANUAL CHANGES WILL BE OVERWRITTEN -->
    <!-- from topic: boiler -->
    <topicgroup conref="boilers-task.ditamap#must-create-topic-and-map"/>
    </map>
  5. And a document with filename "bawt.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE task PUBLIC "urn:pubid:org.kuali.kits.kms:doctypes:dita:task"
    "http://www.indiana.edu/~worklist/dita-prototypes/org.kuali.kits.kms/doctypes/task/dtd/kbtask.dtd">
    <task id="kbdoc">
    <title id="default">How do I create Refs for a topic in the DITA KB?</title>
    <taskbody>
    <prereq conref="boilers-task.dita#box/must-create-topic-and-map"/>
    </taskbody>
    </task>
  6. When I preview the document with audience filter "default"
    features/step_definitions/all_steps.rb:201
  7. Then I should see "You must have created a new topic and its ditamap in the DITA KB." in the preview window
    features/step_definitions/all_steps.rb:338
  8. And I should see "Test sentence." in the preview window
    features/step_definitions/all_steps.rb:338
Screenshot
 

Feature: Updating content


In order to add to existing documents
As a KMS Maintainer
I want to be able to modify existing documents

features/updating-content.feature:8

Scenario: I can update a doc

  1. Given I am logged in as "editor1"
    features/step_definitions/all_steps.rb:6
  2. And a document with filename "xxxx.dita" exists with content
    features/step_definitions/all_steps.rb:72
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd">
    <topic id="kbdoc" xml:lang="en-us">
        <title>Shopping for groceries</title>
        <body>
            <p>A sample document to test ditac rendering.</p>
        </body>
    </topic>
  3. When I go to the homepage
    features/step_definitions/web_steps.rb:23
  4. And I follow "Edit content"
    features/step_definitions/web_steps.rb:33
  5. And I edit the "trunk" branch of the document with filename "xxxx.dita"
    features/step_definitions/all_steps.rb:183
  6. And I edit the content of the document to be
    features/step_definitions/all_steps.rb:195
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/topic.dtd">
    <topic id="kbdoc" xml:lang="en-us">
        <title>Shopping for groceries</title>
        <body>
            <p>A simple document to test ditac rendering.</p>
        </body>
    </topic>
  7. And I press "save" in the frame
    features/step_definitions/all_steps.rb:235
  8. Then I should see "A simple document" in the frame
    features/step_definitions/all_steps.rb:273
Screenshot
 

Feature: Visibility filtering

Background

    features/visibility-filtering.feature:5

    Scenario: As an un-logged-in end-user, I can search for content with visibility = visible

    1. Given a document with visibility of "visible"
      features/visibility-filtering.feature:7
      Undefined step: "a document with visibility of "visible"" (Cucumber::Undefined)
      features/visibility-filtering.feature:7:in `Given a document with visibility of "visible"'
      5Scenario: As an un-logged-in end-user, I can search for content with visibility = visible
      6
      7Given a document with visibility of "visible"
      8When I search the KB for the document
      9Then I should see the document in the results
      Given /^a document with visibility of "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    2. When I search the KB for the document
      features/visibility-filtering.feature:8
      Undefined step: "I search the KB for the document" (Cucumber::Undefined)
      features/visibility-filtering.feature:8:in `When I search the KB for the document'
      6
      7Given a document with visibility of "visible"
      8When I search the KB for the document
      9Then I should see the document in the results
      When /^I search the KB for the document$/ do
        pending # express the regexp above with the code you wish you had
      end
    3. Then I should see the document in the results
      features/visibility-filtering.feature:9
      Undefined step: "I should see the document in the results" (Cucumber::Undefined)
      features/visibility-filtering.feature:9:in `Then I should see the document in the results'
      7Given a document with visibility of "visible"
      8When I search the KB for the document
      9Then I should see the document in the results
      10
      11Scenario: As an un-logged-in end-user, I cannot search for content with visibility = invisible
      Then /^I should see the document in the results$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    features/visibility-filtering.feature:11

    Scenario: As an un-logged-in end-user, I cannot search for content with visibility = invisible

    1. Given a document with visibility of "invisible"
      features/visibility-filtering.feature:13
      Undefined step: "a document with visibility of "invisible"" (Cucumber::Undefined)
      features/visibility-filtering.feature:13:in `Given a document with visibility of "invisible"'
      11Scenario: As an un-logged-in end-user, I cannot search for content with visibility = invisible
      12
      13Given a document with visibility of "invisible"
      14When I search the KB for the document
      15Then I should not see the document in the results
      Given /^a document with visibility of "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    2. When I search the KB for the document
      features/visibility-filtering.feature:14
      Undefined step: "I search the KB for the document" (Cucumber::Undefined)
      features/visibility-filtering.feature:14:in `When I search the KB for the document'
      12
      13Given a document with visibility of "invisible"
      14When I search the KB for the document
      15Then I should not see the document in the results
      When /^I search the KB for the document$/ do
        pending # express the regexp above with the code you wish you had
      end
    3. Then I should not see the document in the results
      features/visibility-filtering.feature:15
      Undefined step: "I should not see the document in the results" (Cucumber::Undefined)
      features/visibility-filtering.feature:15:in `Then I should not see the document in the results'
      13Given a document with visibility of "invisible"
      14When I search the KB for the document
      15Then I should not see the document in the results
      16
      17Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = draft
      Then /^I should not see the document in the results$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    features/visibility-filtering.feature:17

    Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = draft

    1. Given I am not logged in
      features/visibility-filtering.feature:19
      Undefined step: "I am not logged in" (Cucumber::Undefined)
      features/visibility-filtering.feature:19:in `Given I am not logged in'
      17Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = draft
      18
      19Given I am not logged in
      20Given a document with visibility of "draft"
      21When I search the KB for the document
      Given /^I am not logged in$/ do
        pending # express the regexp above with the code you wish you had
      end
    2. Given a document with visibility of "draft"
      features/visibility-filtering.feature:20
      Undefined step: "a document with visibility of "draft"" (Cucumber::Undefined)
      features/visibility-filtering.feature:20:in `Given a document with visibility of "draft"'
      18
      19Given I am not logged in
      20Given a document with visibility of "draft"
      21When I search the KB for the document
      22Then I should not see the document in the results
      Given /^a document with visibility of "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    3. When I search the KB for the document
      features/visibility-filtering.feature:21
      Undefined step: "I search the KB for the document" (Cucumber::Undefined)
      features/visibility-filtering.feature:21:in `When I search the KB for the document'
      19Given I am not logged in
      20Given a document with visibility of "draft"
      21When I search the KB for the document
      22Then I should not see the document in the results
      23But I should be able to open the document in the KB.
      When /^I search the KB for the document$/ do
        pending # express the regexp above with the code you wish you had
      end
    4. Then I should not see the document in the results
      features/visibility-filtering.feature:22
      Undefined step: "I should not see the document in the results" (Cucumber::Undefined)
      features/visibility-filtering.feature:22:in `Then I should not see the document in the results'
      20Given a document with visibility of "draft"
      21When I search the KB for the document
      22Then I should not see the document in the results
      23But I should be able to open the document in the KB.
      24And the document should say "DRAFT" in front of the title
      Then /^I should not see the document in the results$/ do
        pending # express the regexp above with the code you wish you had
      end
    5. But I should be able to open the document in the KB.
      features/visibility-filtering.feature:23
      Undefined step: "I should be able to open the document in the KB." (Cucumber::Undefined)
      features/visibility-filtering.feature:23:in `But I should be able to open the document in the KB.'
      21When I search the KB for the document
      22Then I should not see the document in the results
      23But I should be able to open the document in the KB.
      24And the document should say "DRAFT" in front of the title
      Then /^I should be able to open the document in the KB\.$/ do
        pending # express the regexp above with the code you wish you had
      end
    6. And the document should say "DRAFT" in front of the title
      features/visibility-filtering.feature:24
      Undefined step: "the document should say "DRAFT" in front of the title" (Cucumber::Undefined)
      features/visibility-filtering.feature:24:in `And the document should say "DRAFT" in front of the title'
      22Then I should not see the document in the results
      23But I should be able to open the document in the KB.
      24And the document should say "DRAFT" in front of the title
      25
      26Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = nosearch
      Then /^the document should say "([^"]*)" in front of the title$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     
    features/visibility-filtering.feature:26

    Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = nosearch

    1. Given I am not logged in
      features/visibility-filtering.feature:28
      Undefined step: "I am not logged in" (Cucumber::Undefined)
      features/visibility-filtering.feature:28:in `Given I am not logged in'
      26Scenario: As an un-logged-in end-user, I cannot search for but can see content with visibility = nosearch
      27
      28Given I am not logged in
      29Given a document with visibility of "draft"
      30When I search the KB for the document
      Given /^I am not logged in$/ do
        pending # express the regexp above with the code you wish you had
      end
    2. Given a document with visibility of "draft"
      features/visibility-filtering.feature:29
      Undefined step: "a document with visibility of "draft"" (Cucumber::Undefined)
      features/visibility-filtering.feature:29:in `Given a document with visibility of "draft"'
      27
      28Given I am not logged in
      29Given a document with visibility of "draft"
      30When I search the KB for the document
      31Then I should not see the document in the results
      Given /^a document with visibility of "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    3. When I search the KB for the document
      features/visibility-filtering.feature:30
      Undefined step: "I search the KB for the document" (Cucumber::Undefined)
      features/visibility-filtering.feature:30:in `When I search the KB for the document'
      28Given I am not logged in
      29Given a document with visibility of "draft"
      30When I search the KB for the document
      31Then I should not see the document in the results
      32But I should be able to open the document in the KB.
      When /^I search the KB for the document$/ do
        pending # express the regexp above with the code you wish you had
      end
    4. Then I should not see the document in the results
      features/visibility-filtering.feature:31
      Undefined step: "I should not see the document in the results" (Cucumber::Undefined)
      features/visibility-filtering.feature:31:in `Then I should not see the document in the results'
      29Given a document with visibility of "draft"
      30When I search the KB for the document
      31Then I should not see the document in the results
      32But I should be able to open the document in the KB.
      Then /^I should not see the document in the results$/ do
        pending # express the regexp above with the code you wish you had
      end
    5. But I should be able to open the document in the KB.
      features/visibility-filtering.feature:32
      Undefined step: "I should be able to open the document in the KB." (Cucumber::Undefined)
      features/visibility-filtering.feature:32:in `But I should be able to open the document in the KB.'
      30When I search the KB for the document
      31Then I should not see the document in the results
      32But I should be able to open the document in the KB.
      33
      34           
      Then /^I should be able to open the document in the KB\.$/ do
        pending # express the regexp above with the code you wish you had
      end
    Screenshot
     

    Feature: Worklist functions

    Further scenarios to work on:

    An Editor can request owner approval for multiple documents
    I can approve multiple documents
    I can publish a document
    I can publish multiple documents

    features/worklist-functions.feature:11

    Scenario: An Editor can request owner approval for a document

    1. Given that I am logged in as "editor1"
      features/worklist-functions.feature:12
      Undefined step: "that I am logged in as "editor1"" (Cucumber::Undefined)
      features/worklist-functions.feature:12:in `Given that I am logged in as "editor1"'
      10
      11Scenario: An Editor can request owner approval for a document
      12Given that I am logged in as "editor1"
      13And a new worklist
      14And the worklist contains document "xaaf"
      Given /^that I am logged in as "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    2. And a new worklist
      features/step_definitions/all_steps.rb:103
    3. And the worklist contains document "xaaf"
      features/worklist-functions.feature:14
      Undefined step: "the worklist contains document "xaaf"" (Cucumber::Undefined)
      features/worklist-functions.feature:14:in `And the worklist contains document "xaaf"'
      12Given that I am logged in as "editor1"
      13And a new worklist
      14And the worklist contains document "xaaf"
      15When I select document "xaaf"
      16And I request owner approval for selected documents
      Given /^the worklist contains document "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    4. When I select document "xaaf"
      features/worklist-functions.feature:15
      Undefined step: "I select document "xaaf"" (Cucumber::Undefined)
      features/worklist-functions.feature:15:in `When I select document "xaaf"'
      13And a new worklist
      14And the worklist contains document "xaaf"
      15When I select document "xaaf"
      16And I request owner approval for selected documents
      17And I impersonate user "sme1"
      When /^I select document "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    5. And I request owner approval for selected documents
      features/worklist-functions.feature:16
      Undefined step: "I request owner approval for selected documents" (Cucumber::Undefined)
      features/worklist-functions.feature:16:in `And I request owner approval for selected documents'
      14And the worklist contains document "xaaf"
      15When I select document "xaaf"
      16And I request owner approval for selected documents
      17And I impersonate user "sme1"
      18Then I should see document "xaaf" in my action list
      When /^I request owner approval for selected documents$/ do
        pending # express the regexp above with the code you wish you had
      end
    6. And I impersonate user "sme1"
      features/step_definitions/all_steps.rb:325
    7. Then I should see document "xaaf" in my action list
      features/step_definitions/all_steps.rb:306
    Screenshot
     
    features/worklist-functions.feature:20

    Scenario: An Editor can approve a document

    1. Given that I am logged in as "editor1"
      features/worklist-functions.feature:21
      Undefined step: "that I am logged in as "editor1"" (Cucumber::Undefined)
      features/worklist-functions.feature:21:in `Given that I am logged in as "editor1"'
      19
      20Scenario: An Editor can approve a document
      21Given that I am logged in as "editor1"
      22And a new worklist
      23And the worklist contains document "xaag"
      Given /^that I am logged in as "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    2. And a new worklist
      features/step_definitions/all_steps.rb:103
    3. And the worklist contains document "xaag"
      features/worklist-functions.feature:23
      Undefined step: "the worklist contains document "xaag"" (Cucumber::Undefined)
      features/worklist-functions.feature:23:in `And the worklist contains document "xaag"'
      21Given that I am logged in as "editor1"
      22And a new worklist
      23And the worklist contains document "xaag"
      24When I select document "xaag"
      25And I approve selected documents
      Given /^the worklist contains document "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    4. When I select document "xaag"
      features/worklist-functions.feature:24
      Undefined step: "I select document "xaag"" (Cucumber::Undefined)
      features/worklist-functions.feature:24:in `When I select document "xaag"'
      22And a new worklist
      23And the worklist contains document "xaag"
      24When I select document "xaag"
      25And I approve selected documents
      26Then I should see document "xaag" in my action list
      When /^I select document "([^"]*)"$/ do |arg1|
        pending # express the regexp above with the code you wish you had
      end
    5. And I approve selected documents
      features/worklist-functions.feature:25
      Undefined step: "I approve selected documents" (Cucumber::Undefined)
      features/worklist-functions.feature:25:in `And I approve selected documents'
      23And the worklist contains document "xaag"
      24When I select document "xaag"
      25And I approve selected documents
      26Then I should see document "xaag" in my action list
      When /^I approve selected documents$/ do
        pending # express the regexp above with the code you wish you had
      end
    6. Then I should see document "xaag" in my action list
      features/step_definitions/all_steps.rb:306
    Screenshot
     

    Feature: Worklists


    In order to handle projects that require editing an ad hoc group of documents
    As a KB Maintainer
    I want the system to incorporate docs into lists that I can interact with